{% extends "admin/admin.html" %}

{% block form %}

<form style="display:inline;" method="post">
    {% for msg in get_flashed_messages(category_filter=['ok']) %}
    <p style="color: red">{{ msg }}</p>
    {% endfor %}
    <div class="form-group" style="margin-bottom:10px; margin-right:10px">
        <label style="margin-right:10px;">账号</label>
        {{ form.admin_user }}
        {% for v in form.admin_user.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="form-group" style="margin-bottom:10px; margin-right:10px">
        <label style="margin-right:10px;">密码</label>
        {{ form.password }}
        {% for v in form.password.errors %}
        <p style="color: red"> {{ v }}</p>
        {% endfor %}
    </div>
    <div class="text-center">
        <!--
        <a class="btn btn-primary" href="{{ url_for('publisher.add_activity') }}" style="margin-left:50px;">登录</a>
        -->
        {{ form.submit }}
    </div>
    {{ form.csrf_token }}
</form>

{% endblock %}